<link rel='stylesheet' href='../../static/news/style/style1.css'>
<link rel='stylesheet' href='../../static/news/style/tab.css'>
<link rel='stylesheet' href='../../static/news/style/extra.css'>
<link rel='stylesheet' href='../../static/news/style/sdmenu.css'>
<script charset="utf-8" src="../../static/news/style/common.js"></script>
<script charset="utf-8" src="../../static/news/style/sdmenu.js"></script>
<script src="/static/public/jquery-1.4.3.min.js" type="text/javascript"></script>
<script src="/static/public/page/jquery.pager.js" type="text/javascript"></script>
<link rel="stylesheet" href="/static/public/page/news_pager.css">
{literal}

<script type="text/javascript" language="javascript">  
        $(document).ready(function() {  
            $("#pager").pager({ pagenumber:{/literal}{$num.current}, pagecount: {$num.page}{literal}, buttonClickCallback: PageClick });  
           	 $("#chk_all").click(function(){
                 $("input[name='chk_list']").attr("checked",$(this).attr("checked"));
            });
                  });   
            
        PageClick = function(pageclickednumber) {  
            $("#pager").pager({ pagenumber: pageclickednumber, pagecount: {/literal}{$num.page}{literal}, buttonClickCallback: PageClick });  
           // $("#result").html("Clicked Page " + pageclickednumber);     
            	window.location.href='/order/listing/?type=factory&p='+pageclickednumber;          
        }    

        function act(name){
       	 var arrChk=$("input[name='chk_list']:checked");
       	 var ids='';
       	 var cid=$("select[name='category']").val(); 
         var remark=$("#remark").val();

         if(remark.length<5){
             alert('请填写备注，不小于5个字');
             return false;
         }
       	 
       	 if(cid<1&&name!='del'){
       		 alert('确认'+name);
       		 return false;
         }
       	 
         var flag=confirm('确认操作?');
         if(flag==false){
             return false;
         }

         $(arrChk).each(function(){
     	     ids=ids+','+this.value;                        
     	  }); 

       	 $.post("/order/setstatus",{ids:ids,cid:cid,type:name,remark:remark},function(data){
                 alert(data.error);  
                 window.location.reload();
     	 },"json");
 	   
 	  
      }     
            
            
    </script>

{/literal}


<!-- 头部// -->
{include file="news/top.tpl"}

<!-- 左侧// -->
{include file="news/nav.tpl"}
<!-- 中间// -->
<td valign="top" class="td_content">
<!-- setting title/desc -->
<form name="news" action="/order/listing" method="post" >

<div class="block titlebox">
	<h2 class="title">快捷方式</h2>
   	<div class="content">
   	<input type="checkbox"
	name="chk_all" id="chk_all" />全选 {$cate}备注<input name="remark" id="remark" size="20" value="检测通过,进入下一步"><input type=button
	name=copy class=imgbutton value="生产配货" onclick="act('produce');"> 
 <!-- 	搜索类型:
   	<select name="type"><option value="orderno" selected>订单号</option><option value="shr">收货人</option><option value="username">用户名</option></select><input value="" name="value"> <input type="submit" class="imgbutton" value="搜索"></div>
 -->  
</div>
</form>
<!-- setting title/desc -->




<!-- 内容// -->
<table width="100%" align=center cellspacing=1 cellpadding=5 border=0 class=mytb>
<tr class=title><th>序号</th><th>状态</th><th>订单号</th><th>用户名</th><th>收货人</th><th>收货地址</th><th>手机</th><th>总价</th><th>下单时间</th><th>付款时间</th><th>发货时间</th><th>操作人</th></tr>




{section name=l loop=$news }
<tr>
<td class=left width="7%" style="text-align:left;"><input type=checkbox name=chk_list value="{$news[l].id}" >{$news[l].id}</td>
<td class=left>{$news[l].status}</td>
<td class=left width="6%"><a href="/order/i/?sno={$news[l].orderno}&p={$num.current}&type=factory">{$news[l].orderno}</a></td>
<td class=left width="8%">{$news[l].username}</td>
<td class=right width="6%">{$news[l].shr}</td>
<td class=right width="15%"><a href="/news/v/?id={$news[l].nid}" target="__blank">{$news[l].address}</a></td>
<td class=left width="8%">{$news[l].mobile}</td>
<td class=right width="6%"></td>
<td class=left>{$news[l].addtime|date_format:"%m/%d %H:%M"}</td>

<td class=right>{$news[l].pay_time|date_format:"%m/%d %H:%M"}</td>

<td class=left>{$news[l].send_time|date_format:"%m/%d %H:%M"}</td>
<td class=right width="5%">{$news[l].action}</td>

</tr>
{/section}

</table>


    <!-- help -->
   <div>
        <div id="pager"></div>共有<font color="red">{$totalnum}</font>条记录
       
    </div>
	<!-- help -->

</td>

<!-- 底部// -->
{include file="news/footer.tpl"}

